#ifndef __M_LOGLEVEL_H__
#define __M_LOGLEVEL_H__

namespace Yohifo
{
    class LogLevel
    {
    public:
        enum class Value
        {
            UNKNOW,
            DEBUG,
            INFO,
            WARNING,
            ERROR,
            FATAL,
            OFF
        };

        static const char *toString(Value v)
        {
            switch (v)
            {
            case Value::DEBUG:
                return "DEBUG";
                break;
            case Value::INFO:
                return "INFO";
                break;
            case Value::WARNING:
                return "WARNING";
                break;
            case Value::ERROR:
                return "ERROR";
                break;
            case Value::FATAL:
                return "FATAL";
                break;
            case Value::OFF:
                return "OFF";
                break;
            }

            return "UNKNOW";
        }

    private:
    };
}

#endif